/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.AttributeManager;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "添加检测模板-产品",TableName = "ProductInspectionTemplate")]
    public partial class ProductInspectionTemplate:BaseEntity
    {
        /// <summary>
       ///主键
       /// </summary>
       [Key]
       [Display(Name ="主键")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Id { get; set; }

       /// <summary>
       ///产品物料编码
       /// </summary>
       [Display(Name ="产品物料编码")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Material_code { get; set; }

       /// <summary>
       ///产品物料名称
       /// </summary>
       [Display(Name ="产品物料名称")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string Material_name { get; set; }

       /// <summary>
       ///方案编码
       /// </summary>
       [Display(Name ="方案编码")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string PlanNo { get; set; }

       /// <summary>
       ///规格型号
       /// </summary>
       [Display(Name ="规格型号")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string Specification { get; set; }

       /// <summary>
       ///最低检测数（默认1）
       /// </summary>
       [Display(Name ="最低检测数（默认1）")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Min_inspection_quantity { get; set; }

       /// <summary>
       ///最大不合格数（默认0）
       /// </summary>
       [Display(Name ="最大不合格数（默认0）")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Max_defective_quantity { get; set; }

       /// <summary>
       ///单位
       /// </summary>
       [Display(Name ="单位")]
       [MaxLength(20)]
       [Column(TypeName="nvarchar(20)")]
       [Editable(true)]
       public string Unit { get; set; }

       /// <summary>
       ///最大致命缺陷（默认0）
       /// </summary>
       [Display(Name ="最大致命缺陷（默认0）")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Max_critical_defect { get; set; }

       /// <summary>
       ///最大严重缺陷（默认0）
       /// </summary>
       [Display(Name ="最大严重缺陷（默认0）")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Max_major_defect { get; set; }

       /// <summary>
       ///最大轻微缺陷（默认100）
       /// </summary>
       [Display(Name ="最大轻微缺陷（默认100）")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Max_minor_defect { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string Remark { get; set; }

       
    }
}